package net.techwatch.poi;

public abstract class AbstractConfiguration implements Configuration {

	private Binder binder;
	
	public void configure(Binder binder) {
		this.binder = binder;
		configure();
	}
	
	public Binder bind(Class<?> clazz) {
		return bind("*").from(clazz);
	}
	
	public Binder bind(String property) {
		binder.addProperty(property);
		return binder;
	}
	
	protected abstract void configure();
}
